package com.example.leetcode.matrix;

import com.example.leetcode.matrix.common.MatrixUtils;

class Solution6403 {
    public int findMaxFish(int[][] grid) {
        return MatrixUtils.findMaxFish(grid);
    }
}

public class leetcode6403 {
    public static void main(String[] args) {
        Solution6403 solution6403 = new Solution6403();
        int[][] grid = {{0, 2, 1, 0}, {4, 0, 0, 3}, {1, 0, 0, 4}, {0, 3, 2, 0}};
        System.out.println(solution6403.findMaxFish(grid));

        int[][] grid1 = {{1, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 1}};
        System.out.println(solution6403.findMaxFish(grid1));

    }
}
